/**
 * Copyright (c) 2018-2028, Chill Zhuang 庄骞 (smallchill@163.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.springblade.modules.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springblade.modules.system.entity.Drugs;
import org.springblade.modules.system.entity.DrugsType;
import org.springblade.utils.PageBounds;

import java.util.List;

/**
 * 服务类
 *
 * @author Chill
 */
public interface IDrugsTypeService extends IService<DrugsType> {

	/**
	 * 增加药品类型
	 */
	int addDrugsType(DrugsType drugsType);

	/**
	 * 删除药品类型
	 */
	int deleteDrugsType(Integer id);

	/**
	 * 修改药品类型
	 */
	int updateDrugsType(DrugsType drugsType);

	/**
	 * 获取总条数
	 * @param drugsType
	 * @return
	 */
	//int getAllDrugsTypeCount(@Param("drugsType") DrugsType drugsType);
	/**
	 * 查看药品类型
	 */
	PageBounds<DrugsType> showAllDrugsType(DrugsType drugsType,int currentPage,int pageSize);
	/**
	 * 按id查询
	 */
	DrugsType findByDrugsTypeId(Integer id);
	/**
	 * 批量删除
	 * @param ids
	 * @return
	 */
	int deleteMoreDrugsPtype(List<Integer> ids);
	/**
	 * 获取所有类别
	 * @param drugsType
	 * @return
	 */
	List<DrugsType> getAllDrugsType(DrugsType drugsType);
	/**
	 * 判断删除药品类型
	 */
	int delDrugsType(List<Integer> typeid);

}
